package com.sansi.bleFloodlight.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class CommentUtils {
    /**
     * 打开权限界面
     * @param context
     */
    public static void openPermission(Context context){
        Intent intent = new Intent();
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
        intent.setData(Uri.fromParts("package", context.getPackageName(), null));
        context.startActivity(intent);
    }
}
